﻿<UserControl x:Class="PhotoKiosk.View.UserControls.KeyboardAndTextView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:resx="clr-namespace:PhotoKiosk.Properties"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="400" Width="800">
        <Grid>
        <TextBox Text="{Binding Text, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" Height="55" HorizontalAlignment="Center" Margin="0,10,0,0" VerticalAlignment="Top" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="415" FontSize="26">
            <TextBox.Style>
                <Style TargetType="TextBox">
                    <Setter Property="Background" Value="#77F4F4F5"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding ErrorColor}" Value="true">
                            <Setter Property="Background" Value="#77C32C2C" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBox.Style>
        </TextBox>
        <Button Command="{Binding A1PressCommand}" Content="{Binding A1PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="10,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A2PressCommand}" Content="{Binding A2PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="75,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A3PressCommand}" Content="{Binding A3PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="140,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A4PressCommand}" Content="{Binding A4PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="205,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A5PressCommand}" Content="{Binding A5PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="270,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A6PressCommand}" Content="{Binding A6PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="335,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A7PressCommand}" Content="{Binding A7PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="400,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A8PressCommand}" Content="{Binding A8PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="465,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A9PressCommand}" Content="{Binding A9PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="530,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding A10PressCommand}" Content="{Binding A10PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="595,100,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B1PressCommand}" Content="{Binding B1PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="30,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B2PressCommand}" Content="{Binding B2PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="95,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B3PressCommand}" Content="{Binding B3PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="160,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B4PressCommand}" Content="{Binding B4PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="225,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B5PressCommand}" Content="{Binding B5PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="290,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B6PressCommand}" Content="{Binding B6PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="355,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B7PressCommand}" Content="{Binding B7PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="420,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B8PressCommand}" Content="{Binding B8PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="485,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B9PressCommand}" Content="{Binding B9PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="550,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding B10PressCommand}" Content="{Binding B10PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="615,165,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C1PressCommand}" Content="{Binding C1PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="55,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C2PressCommand}" Content="{Binding C2PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="120,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C3PressCommand}" Content="{Binding C3PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="185,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C4PressCommand}" Content="{Binding C4PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="250,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C5PressCommand}" Content="{Binding C5PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="315,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C6PressCommand}" Content="{Binding C6PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="380,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C7PressCommand}" Content="{Binding C7PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="445,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C8PressCommand}" Content="{Binding C8PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="510,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding C9PressCommand}" Content="{Binding C9PressCommandText}" Height="60" HorizontalAlignment="Left" Margin="575,230,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding SpacePressCommand}" Content="{x:Static resx:Resources.Space}" Height="60"  HorizontalAlignment="Left" Margin="200,295,0,0" VerticalAlignment="Top" Width="392" FontWeight="Bold" FontSize="25" Background="#55000000"/>
            <Button Command="{Binding DeletePressCommand}" Content="{x:Static resx:Resources.Delete}" Height="60" HorizontalAlignment="Left" Margin="660,100,0,0" VerticalAlignment="Top" Width="135" FontWeight="Bold" FontSize="25" Background="#55000000"/>
        <Label Content="{Binding Error}" HorizontalContentAlignment="Center" HorizontalAlignment="Left" Margin="192,70,0,0" VerticalAlignment="Top" Width="410" Foreground="Red" FontSize="13"/>
    </Grid>
</UserControl>
